package com.jmpt.fangbohui.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class LoginSQLiteOpenHelper extends SQLiteOpenHelper {

	public LoginSQLiteOpenHelper(Context context) {
		super(context, "login.db", null, 1);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		//type 1 user  2 broker
		db.execSQL("create table login (_id Integer primary key autoincrement , " +
				"UserName varchar(20), UserId varchar(20)," +
				"AgentName varchar(20),AgentId varchar(20),sessionid varchar(20) , type Integer)");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub

	}

}
